﻿<%@ Page Title="" Language="C#" MasterPageFile="~/View/Master.Master" AutoEventWireup="true" CodeBehind="MakeStationeryAdjustment.aspx.cs" Inherits="PresentationLayer.View.StoreClerk.MakeStationeryAdjustment" %>
<%@ Register src="../mainMenu.ascx" tagname="mainMenu" tagprefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .style6
        {
            width: 139px;
        }
        .style7
        {
            width: 279px;
        }
        .style8
        {
            width: 182px;
        }
        .style9
        {
            width: 363px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

  <table width="100%">
    <tr>
        <td style="height:auto;width:200px;vertical-align:top;">
            <uc1:mainMenu ID="mainMenu1" runat="server" />
        </td>
        <td>
    <div style="vertical-align:top;">
    <center><b><h2><u>Make Stationery Adjustment</u></h2></b></center>
    <br />
    <table>
    <tr>
    <td  >&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Category:</td>
    <td class="style9"  >&nbsp;
        <asp:DropDownList ID="ddlCategory" runat="server"
            style="margin-left: 0px" Width="158px" AppendDataBoundItems="True" 
            AutoPostBack="True" 
            onselectedindexchanged="ddlCategory_SelectedIndexChanged" Height="26px">
            <asp:ListItem Value="0">----Select Category----</asp:ListItem>
        </asp:DropDownList>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;      
        </td>
     <td class="style8"> Date:<asp:Label ID="lblTodayDate" runat="server" 
             Text="Label" Width="89px"></asp:Label>
&nbsp;</td>
    </tr>
    </table>
   
    <%-- 
    <table style="width: 631px; height: 92px;">--%> 
    <table>    
    <tr>
    <td>


  <asp:Label ID="lblmsg" runat="server" Text="Label" Visible="False" ForeColor="Red" Font-Bold="true" Font-Size =Larger></asp:Label>
    <asp:gridview id="gvCatalist" runat="server" autogeneratecolumns="False" 
            Width="671px" CellPadding="2" 
        ForeColor="#333333" GridLines="None" 
            onpageindexchanging="gvCatalist_PageIndexChanging" DataKeyNames="ItemId" 
            style="margin-left: 0px" EmptyDataText="No Data available" 
            onrowdatabound="gvCatalist_RowDataBound" AllowPaging="True">        
        <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
     <columns>
             <asp:TemplateField HeaderText="Sr.No">
             <ItemTemplate>
                <%# Container.DataItemIndex + 1 %>
             </ItemTemplate>
                 <ItemStyle HorizontalAlign="Center" />
             </asp:TemplateField>                
         
             <asp:BoundField DataField="ItemId" HeaderText="Catalogue Item ID" >
             <ItemStyle HorizontalAlign="Center" />
             </asp:BoundField>
             <asp:BoundField DataField="Description" HeaderText="Item Name" >
             <ItemStyle HorizontalAlign="Center" />
             </asp:BoundField>
       <asp:TemplateField HeaderText="Adjusted Qty.">
      <ItemTemplate>
       <asp:TextBox ID="tbQty" runat="server" Width="70px" 
              ontextchanged="tbQty_TextChanged" MaxLength="3" />
          <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
              BorderColor="#FF3300" ControlToValidate="tbQty" ErrorMessage="Invalid Quantity" 
              Font-Size="Smaller" ForeColor="Red" ValidationExpression="[1-9]+\d*"></asp:RegularExpressionValidator>
      </ItemTemplate>
     <ItemStyle Width="50px" HorizontalAlign="Center"/>
     </asp:TemplateField>
      
  
     
       <asp:TemplateField HeaderText="Reason">
        <ItemTemplate>
            <asp:RadioButton ID="rbDamage" runat="server" 
                     GroupName="Status" Text='Damage' CausesValidation="True" 
                oncheckedchanged="rbDamage_CheckedChanged"/>
                     <asp:RadioButton ID="rbGet" runat="server" 
                     GroupName="Status" Text='Get' CausesValidation="True" 
                oncheckedchanged="rbGet_CheckedChanged" />
        </ItemTemplate>
        
           <ItemStyle HorizontalAlign="Center" />
        
      </asp:TemplateField>
              
             <asp:CheckBoxField >
              
             <ItemStyle HorizontalAlign="Center" />
             </asp:CheckBoxField>
              
     <asp:TemplateField HeaderText="Add Item">
      <ItemTemplate>
          <asp:CheckBox ID="myCheckBox" runat="server" 
              oncheckedchanged="myCheckBox_CheckedChanged" AutoPostBack="True" 
              CausesValidation="True"/></ItemTemplate>
         <ItemStyle HorizontalAlign="Center" />
     </asp:TemplateField>     
     </columns>  
      
        <EditRowStyle BackColor="#2461BF" />
            <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
            <RowStyle BackColor="#EFF3FB" />
            <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
            <SortedAscendingCellStyle BackColor="#F5F7FB" />
            <SortedAscendingHeaderStyle BackColor="#6D95E1" />
            <SortedDescendingCellStyle BackColor="#E9EBEF" />
            <SortedDescendingHeaderStyle BackColor="#4870BE" />
     </asp:gridview> 
     </td>
     </tr>  

     </table>
     <br />
     <table>
     <tr>
     <td class="style7"></td>
     <td align="center">
         &nbsp;</td>
     <td align="center" class="style6">
         <asp:Button ID="btnConfirm" runat="server" onclick="btnConfirm_Click" 
             Text="Confirm Items" Visible="False" Width="148px" 
             UseSubmitBehavior="False" />
         </td>
       
     </tr>
     </table>
     </div>

     </td></tr></table>
</asp:Content>
